//
//  XYLPaoPaoView.m
//  XYLBaiduMap2017
//
//  Created by 夏玉林 on 17/2/16.
//  Copyright © 2017年 夏玉林. All rights reserved.
//

#import "XYLPaoPaoView.h"

@implementation XYLPaoPaoView

#pragma mark - =====================泡泡的UI====================
-(UIImageView *)iconImageView
{
    if (!_iconImageView)
    {
        _iconImageView = [[UIImageView alloc] init];
        //默认
        _iconImageView.image = [UIImage imageNamed:@"180*180"];
        
        _iconImageView.contentMode = UIViewContentModeScaleAspectFit;
        
        [self addSubview:_iconImageView];
    }
    return _iconImageView;
}


#pragma mark - =====================UIView方法====================

- (instancetype)init
{
    self = [super init];
    if (self)
    {
        self.backgroundColor = [UIColor clearColor];
    }
    return self;
}


#pragma mark - =====================创建UI====================
// 添加尖角图片
-(void)addConner:(CGRect)rect
{
    self.frame = rect;
    
    self.iconImageView.frame = CGRectMake(0, 0, rect.size.width/2, rect.size.height);
    
    self.iconImageView.frame = CGRectMake(rect.size.width/2, 0, rect.size.width/2, rect.size.height);
    
    //    self.iconImageView.frame = CGRectMake(rect.size.width-25, rect.size.height/2, 20, rect.size.height/2-13);
}


@end
